using UnityEngine;
using System.Collections;

public class CameraFollow : MonoBehaviour
{
	public Transform target;
	public Vector3 distance = new Vector3(0, 0, 20);


	// Use this for initialization
	void Start()
	{
		if (!target)
			target = GameObject.Find("butterfly").transform;
	}

	// Update is called once per frame
	void Update()
	{
		Vector3 pos = target.position;

		transform.position = pos + distance;
	}
}
